class AddFirstSemesters < ActiveRecord::Migration
  def self.up
    Semester.create(:start_date => '2005-09-20', :end_date => '2006-12-14', :id => 1, :season => 'Fall')

    Semester.create(:start_date => '2006-01-05', :end_date => '2006-05-02', :id => 2, :season => 'Spring')

    Semester.create(:end_date => '2006-07-20', :start_date => '2006-05-20', :id => 3, :season => 'Summer')

    Semester.create(:start_date => '2006-09-20', :end_date => '2006-12-14', :id => 4, :season => 'Fall')

    Semester.create(:start_date => '2007-01-05', :end_date => '2007-05-02', :id => 5, :season => 'Spring')

    Semester.create(:start_date => '2007-05-20', :end_date => '2007-07-20', :id => 6, :season => 'Summer')

    Semester.create(:end_date => '2007-12-15', :start_date => '2007-09-20', :id => 7, :season => 'Fall')

    Semester.create(:start_date => '2008-01-05', :end_date => '2008-05-02', :id => 8, :season => 'Spring')

    Semester.create(:start_date => '2008-05-20', :end_date => '2008-07-20', :id => 9, :season => 'Summer')

    Semester.create(:start_date => '2008-09-20', :end_date => '2008-12-15', :id => 10, :season => 'Fall')

    Semester.create(:end_date => '2009-05-02', :start_date => '2009-01-05', :id => 11, :season => 'Spring')

    Semester.create(:start_date => '2009-05-20', :end_date => '2009-07-20', :id => 12, :season => 'Summer')

    Semester.create(:start_date => '2009-09-20', :end_date => '2009-12-15', :id => 13, :season => 'Fall')

    Semester.create(:end_date => '2010-05-02', :start_date => '2010-01-05', :id => 14, :season => 'Spring')

    #Semester.create(:end_date => '2011-07-20', :start_date => '2011-05-20', :id => 15, :season => 'Summer')

    #Semester.create(:start_date => '2010-05-20', :end_date => '2010-07-20', :id => 15, :season => 'Summer')

    #Semester.create(:start_date => '2010-09-20', :end_date => '2010-12-15', :id => 16, :season => 'Fall')

    #Semester.create(:start_date => '2011-01-05', :end_date => '2011-05-02', :id => 17, :season => 'Spring')
  end

  def self.down
    Semester.destroy_all "id < 18"
  end
end
